package com.mingye.model.chess;

import com.mingye.board.Board;

/**
 * 箱子
 *
 * @author daixinyi
 */
public class Box extends BaseChess {

    /**
     * 默认的箱子图片
     */
    private static final String DEFAULT_IMAGE_PATH = "box.png";

    /**
     * 箱子吃到食物时的图片
     */
    private static final String OK_IMAGE_PATH = "box_ok.png";

    public Box(int x, int y, Board board) {
        this.setImagePath(DEFAULT_IMAGE_PATH);
        this.x = x;
        this.y = y;
        this.board = board;
    }

    public Box(int x, int y) {
        this.x = x;
        this.y = y;
    }

    /**
     * 设置成默认图片
     */
    public void setImageDefault() {
        this.setImagePath(DEFAULT_IMAGE_PATH);
    }

    /**
     * 设置成箱子在食物上时的图片
     */
    public void setImageOK() {
        this.setImagePath(OK_IMAGE_PATH);
    }

}
